* (bug 9780) Fix normalization of titles with initial colon followed by whitespace
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 4 May 2007 14:30:02 +0000 (14:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 4 May 2007 14:30:02 +0000 (14:30 +0000)
includes/Title.php

index 531944a..0ff2e80 100644 (file)
@@ -1637,6 +1637,7 @@ class Title {
                if ( ':' == $dbkey{0} ) {
                        $this->mNamespace = NS_MAIN;
                        $dbkey = substr( $dbkey, 1 ); # remove the colon but continue processing
+                       $dbkey = trim( $dbkey, '_' ); # remove any subsequent whitespace
                }
 
                # Namespace or interwiki prefix